package com.ddwanglife.designmode.builderpattern;

public class HouseConstruct {
    HouseBuilder hb = null;
    public HouseConstruct(HouseBuilder houseBuilder) {
        this.hb = houseBuilder;
    }
    public void setHouseBuilder(HouseBuilder houseBuilder){
        this.hb = houseBuilder;
    }
    public House constructHouse(){
        this.hb.buildBase();
        this.hb.buildWall();
        this.hb.buildRoof();
        return this.hb.buildHouse();
    }
}
